import VueRouter from 'vue-router'
import About from "@/components/About";
import Home from "@/components/Home";
import News from "@/components/News";
import Detail from "@/components/Detail";

export default new VueRouter({
    routes:[
        {
            path:'/about',
            component: About
        },
        {
            path:'/home',
            component: Home,
            children:[
                {
                    path:'news',
                    component:News,
                    children:[
                        {
                            path:'detail',
                            component:Detail
                        }
                    ]
                }
            ]
        }
    ]
});
